package com.keon.jianbao.ui.widget;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;

import com.keon.jianbao.R;
import com.keon.jianbao.util.UILUtils;
import com.nostra13.universalimageloader.core.ImageLoader;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by keon on 2015/11/6.
 */
public class DetailPicView extends RelativeLayout {

    @Bind(R.id.pic_detail)
    ZoomImageView ivDetail;

    public DetailPicView(Context context, String uri) {
        super(context);

        LayoutInflater.from(context).inflate(R.layout.view_detail_pic, this);
        ButterKnife.bind(this);

        ImageLoader.getInstance().displayImage(uri, ivDetail, UILUtils.getOptions2());
    }

    public void setPic(String uri) {
        ImageLoader.getInstance().displayImage(uri, ivDetail, UILUtils.getOptions2());
    }


}
